﻿<script>
function validate(form){
	var ten = form.txtten_linh_vuc.value;
	if(ten=="")
	{
		inlineMsg('txtten_linh_vuc','Chưa nhập tên lĩnh vực.',2);
		return false;
	}
	return true;
}
</script>
<?php
mysql_query("SET character_set_results=utf8");

$ms_linh_vuc=$_POST['ms_linh_vuc'];//lay ten_dn tu hidden frmDLsua trong tat_ca_thanh_vien.php
$rs=mysql_query("SELECT * FROM linh_vuc_td WHERE MS_LINH_VUC='$ms_linh_vuc'");
$rw=mysql_fetch_array($rs);
$ten_linh_vuc=$rw['TEN_LINH_VUC'];
?>
<div class="table"><h2><span>Cập Nhật Lĩnh Vực Tuyển Dụng</span></h2></div><br />
<form name="frmsua" action="linh_vuc_td/luu_sua_lvtd.php" method="post" enctype="multipart/form-data" class="form" onsubmit="return validate(this)">
<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150"><label><b>Mã lĩnh vực</b></label> </td>
    <td><?php  echo $ms_linh_vuc ?><input type="hidden" name="ms_linh_vuc" value="<?php echo $ms_linh_vuc ?>"/></td>
  </tr>
  
  <tr>
    <td><label><b>Tên lĩnh vực(*)</b></label></td>
    <td><input name="txtten_linh_vuc" id="txtten_linh_vuc" size="70" type="text" value="<?php echo $ten_linh_vuc ?>"/></td>
  </tr>
<tr>
	<td></td>
    <td >
        <input type="submit" name="submit" id="submit" value="Cập nhật" class="button"/>
      	<input type="button" name="back" id="back" value="Trở về" onClick="location.href='index.php?noidung=dslvtd';" class="button" />
      </td>
  </tr>
</table>
</form>
